import {createStore} from 'vuex'

const store = createStore({
    state:{
        count:0,
        name:'您好，vuex'
    },
    mutations:{
        increment:(state) => {
            state.count = state.count + 2
            console.log('我是store里的方法');
        }
    },
    action:{}
})

export default store